package cn.ctodb.commons.alioss;

import cn.ctodb.commons.pool.ObjectPool;

public class ClientPool extends ObjectPool<Client> {

	private AliossProperties aliossProperties;

	public ClientPool(AliossProperties aliossProperties) {
		this.aliossProperties = aliossProperties;
	}

	@Override
	protected Client create() {
		return new Client(aliossProperties.getEndpoint(), aliossProperties.getAccessKeyId(),
				aliossProperties.getAccessKeySecret());
	}

}
